import { createRouter, createWebHashHistory } from "vue-router";
 
const routes = [
      {
        path: '/',
        redirect: '/login'    //必须先访问/再重定向到/login
      },
  
      {
        path: '/login',      
        name: 'login',  
        component: () => import('@/views/Login.vue')  // 箭头函数 组件导入：指定该路由对应的页面组件
      }
];
 
//我也不懂，不动就好了，我c的
const router = createRouter({
    history: createWebHashHistory(),
    routes
});
 
export default router;